/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Ex1
 * <p>Powered by webrx On 2022-08-29 15:13:33
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex1 {
    public static void main(String[] args) {
        double x = .5;
        x += 15;
        System.out.println(x); //15.5 double

        float y = (float) x;//
        y -= .2;
        System.out.println(y);//15.3 float

        int z = (int) y;
        z += 1;
        z = z + 5;
        System.out.println(z);//21 int

        byte a = (byte) z;
        a++;//
        a += 1;
        //a = a + 2;
        System.out.println(a);//23
        System.out.println(a == 6);//false
        System.out.println(a == 23);//false

        float c = 10;
        System.out.println(c);
    }
}
